﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint ;
namespace SPEasyCode
{
    public static class GlobalData
    {
       public static string Current_List_Name;
       public static string Current_List_Internal_Name;
       public static string Current_Field_Name;
       public static string Current_DataType;
       public static int CurrentLine;
       public static int IfIndex;
       public static int CurrentChildLine;
       public static int CurrentChildLineIF;
       public static int NextLineIF;
       public static int NextLine;
       public static int ListLoopStart;
       public static string ClassName;
       public static StringBuilder FinalOutPut;
       public static IfConditionInfoCollection IfConditionInfoCollection;
       public static Dictionary<string, string> SPACVariables;
       public static SPList Current_list;
       public static string LookupFieldListID;
       public static string FieldChoiseValues;
       public static string LookupFieldListTitle;
       public static string NumberFieldFormat;

       public static void Init()
       {
           GlobalData.LookupFieldListID="";
           GlobalData.FieldChoiseValues = "";
           GlobalData.LookupFieldListTitle = "";
           GlobalData.CurrentLine = 0;
           GlobalData.CurrentChildLine = 0;
           GlobalData.ListLoopStart = 0;
           GlobalData.NextLine = 0;
           GlobalData.IfIndex = 0;
           IfConditionInfoCollection = new IfConditionInfoCollection();
           SPACVariables = new Dictionary<string, string>();
          
       }
    }
}
